package com.guomao.demod;

//import org.junit.*;
//import org.junit.After;
//import org.junit.AfterClass;
//import org.junit.Before;
//import org.junit.BeforeClass;

import org.junit.jupiter.api.*;

import java.util.List;

public class OrderTestClass {


    @BeforeEach
    public void A() {
        System.out.println("abc");
    }

    @Test
    public void method() {
        System.out.println("123");
    }

    @AfterEach
    public void B() {
        System.out.println("xyz");
    }
/*
    //是在类加载阶段执行
    @BeforeClass
    public static void firstA() {
        System.out.println("OrderTestClass firstA() 执行...");
    }

    @Before
    public void first() {
        System.out.println("OrderTestClass first() 执行...");
    }

    @Test
    public void test1() {
//        System.out.println("hello world");
//        System.out.println(10/0);
//        List<Order> orders = new OrderMapper().selectOrders();
//        System.out.println(orders);


//        System.out.println("OrderTestClass.test1() 执行...");

//        String s = null;
//        Assert.assertNotNull(s);

        Assert.assertEquals(3, Calculator.add(1, 2));
    }

    @Test
    public void test2() {
//        System.out.println("hello world");
//        System.out.println(10/0);
//        List<Order> orders = new OrderMapper().selectOrders();
//        System.out.println(orders);


        System.out.println("OrderTestClass.test2() 执行...");
    }


    @After
    public void last() {
        System.out.println("OrderTestClass last() 执行...");
    }

    @AfterClass
    public static void lastA() {
        System.out.println("OrderTestClass lastA() 执行...");
    }*/
}
